<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改密码</title>
    <script type="application/javascript" th:src="@{/layui/layui.js}"></script>
    <script type="application/javascript" th:src="@{/js/user.js}"></script>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}"/>
    <link rel="stylesheet" th:href="@{/css/header.css}">
</head>
<body>

<div class="layui-layout layui-layout-admin">

    <div th:replace="~{commons/commons.html::header}"></div>


    <div th:replace="~{commons/commons.html::sider}"></div>

    <div class="layui-body" >
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <div class="layui-tab-content" style="height: 780px;padding: 0px;margin: 10px;" >

                <div class="layui-row">
                    <div class="layui-col-md4 layui-col-md-offset4">
                        <form class="layui-form" action="/user/revisePassword" method="post">
                            <div class="layui-form-item">
                                <h1>修改密码</h1>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">旧密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="oldPassword" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">新密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="newPassword" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                                    <div class="layui-form-mid layui-word-aux">更改成功直接跳转到登陆页面重新登陆</div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即修改</button>
                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <p th:text="${msg}" style="color: red;"></p>
                            </div>
                        </form>

                    </div>
                </div>

            </div>
        </div>
    </div>

</div>


</body>
</html>